package nobu.nakata.nfcfare.datamapper;

import javax.jdo.PersistenceManager;

import net.sf.jsr107cache.Cache;
import nobu.nakata.nfcfare.table.BusStation;

public class BusStationDataMapper {
	private LongKeyDataMapper<BusStation> mapper;
	
	public BusStationDataMapper(Cache cache, PersistenceManager pm) {
		this.mapper		= new LongKeyDataMapper<BusStation>(cache, pm, BusStation.class);
	}
	
	
	public BusStation findByBusCode(Long busCode) {
		return mapper.findByLongKey(busCode);
	}
	public BusStation set(BusStation item) {
		return mapper.set(item);
	}
}
